package chapter09.h9_3;

import chapter09.h9_1.CountDisplay;
import chapter09.h9_1.DisplayImpl;

public class IncreaseDisplay extends CountDisplay {
    private int step;//步长
    public IncreaseDisplay(DisplayImpl impl, int step) {
        super(impl);
        this.step = step;
    }

    public void increaseDisplay(int level){
        int count = 0;
        for (int i = 0 ; i < level ; i++){
            multDisplay(count);
            count += step;
        }
    }
}
